puhelinluettelo.exe: main.obj core.dll 
	link /OUT:"puhelinluettelo.exe" core.lib /SUBSYSTEM:CONSOLE main.obj
	
main.obj: main.cpp translations.h
	cl /D "WIN32" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /D "SUOMI" /c main.cpp /I".\" 
	
core.dll: core.obj registry.obj
	link /OUT:"core.dll" /DLL core.obj registry.obj "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib"

core.obj: core.h core.cpp
	cl /D "WIN32" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /D "SUOMI" /c core.cpp

registry.obj: registry.h registry.cpp
	cl /D "WIN32" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /D "SUOMI" /c registry.cpp
	
clean:
	del *.obj *.exe *.lib *.exp *.dll